package com.zmn.oms.services.impl.channelprepay;

import com.zmn.oms.model.entity.channelprepay.OrderChannelPrepay;
import com.zmn.oms.persistence.interfaces.channelprepay.OrderChannelPrepayDao;
import com.zmn.oms.services.interfaces.channelprepay.OrderChannelPrepayService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 类描述：
 *
 * @author wangxiaokun
 * @since 2022/04/27 10:16
 */
@Service
public class OrderChannelPrepayServiceImpl implements OrderChannelPrepayService {

    @Resource
    private OrderChannelPrepayDao orderChannelPrepayDao;

    @Override
    public List<OrderChannelPrepay> listOrderChannelPrepayByOrderIdAndWorkId(Long orderId, Long workId) {
        return orderChannelPrepayDao.listOrderChannelPrepayByOrderIdAndWorkId(orderId, workId);
    }

    @Override
    public List<OrderChannelPrepay> listOrderChannelPrepayByWorkIdList(List<Long> workIdList) {
        return orderChannelPrepayDao.listOrderChannelPrepayByWorkIdList(workIdList);
    }

    @Override
    public int insertAll(List<OrderChannelPrepay> channelPrepayList) {
        return orderChannelPrepayDao.insertAll(channelPrepayList);
    }

    @Override
    public int deleteByOrderId(Long orderId) {
        return orderChannelPrepayDao.deleteByOrderId(orderId);
    }
}
